//
//  DYYuyueRenCell.swift
//  SheYangBigData
//
//  Created by 宋海胜 on 2021/1/5.
//  Copyright © 2021 叁拾叁. All rights reserved.
//


import UIKit


class DYYuyueRenCell: SYBaseCell  {
    

    
    let nameLb: UILabel = {
        let v:UILabel = UILabel()
        v.textColor = UIColor(hex: 0x555555)
        v.font = 15.autoFontSize()
        return v
    }()
    
    let content: UITextField = {
        let v: UITextField  = UITextField()
        
        v.textColor = UIColor(hex: 0x555555)
        v.font = 15.autoFontSize()
        
        return v
    }()
    
    

    public func configureView() {
        
    }
    
    override func initViews() {
        self.backgroundColor = .white
        //当文本框内容改变时，将内容输出到控制台上
        content.rx.text.orEmpty.asObservable()
            .subscribe(onNext: {[weak self] in
                if let `self` = self {
                    self.passParamsClosure?($0)
                }
                print("您输入的是：\($0)")
            })
            .disposed(by: disposeBag)
        
        contentView.addSubview(nameLb)
        contentView.addSubview(content)
        contentView.addSubview(lineView)


        nameLb.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(12.0.autoWidth())
            make.bottom.equalToSuperview().offset(-12.0.autoWidth())
            make.left.equalToSuperview().offset(autoWidth(15.5))
            make.width.equalTo(70.0.autoWidth())
            make.height.equalTo(20.0.autoWidth())
        }
        
        content.snp.makeConstraints { (make) in
            make.centerY.equalTo(nameLb)
            make.left.equalToSuperview().offset(autoWidth(74.5))
            make.right.equalToSuperview().offset(autoWidth(-10.5))
            make.height.equalTo(40.0.autoWidth())
        }
        
        lineView.snp.makeConstraints { (make) in
            make.bottom.equalToSuperview()
            make.left.equalToSuperview().offset(autoWidth(15.5))
            make.right.equalToSuperview().offset(autoWidth(-15.5))
            make.height.equalTo(0.5)
        }
    }
    @objc func actionqq() {
        print("8888888889999999999999999999")
    }
}

